package cloud.config.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

@EnableConfigServer
@SpringBootApplication
public class CloudConfigServerApplication {
	
	/**
	 * 在application.yml中有个git.uri的配置，目前配置的是https://gitee.com/zjj6/spring-cloud.git
	 * 获取git上的资源信息遵循如下规则：
	 * /{application}/{profile}[/{label}]
	 * /{application}-{profile}.yml
	 * /{label}/{application}-{profile}.yml
	 * /{application}-{profile}.properties
	 * /{label}/{application}-{profile}.properties
	 *
	 * 例如本例：可使用以下路径来访问
	 * http://localhost:8888/cloud-config-dev.properties
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(CloudConfigServerApplication.class, args);
	}
}
